package edu.sctu.practice.class01.zhoumengxue.test.test10;

/**整型、长整型、浮点型、双精度浮点型、还有字符串
 * Created by ASUS on 2015/10/20.
 */
public class Addition {

    public Addition() {
    }

    public void add(int num1, int num2) {
        int num3 = num1 + num2;
        System.out.println("num1+num2=" + num3);
    }

    public void add(long num1, long num2) {
        long num3 = num1 + num2;
        System.out.println("num1+num2=" + num3);
    }

    public void add(float num1, float num2) {
        float num3 = num1 + num2;
        System.out.println("num1+b=" + num3);
    }

    public void add(double num1, double num2) {
        double num3 = num1 + num2;
        System.out.println("num1+num2=" + num3);
    }

    public void add(String num1, String num2) {
        String num3 = num1 + num2;
        System.out.println("num1+num2=" + num3);
    }
}
